import request from '@/utils/request'

// 查询请假列表
export function getListData(query) {
  return request({
    url: 'wsd_meals/list',
    method: 'get',
    params: query
  })
}
//查询一条数据菜单
export function getOneData(query) {
  return request({
    url: 'wsd_meals/getInfo',
    method: 'get',
    params: query
  })
}
//添加菜单
export function addMenu(data) {
  return request({
    url: 'wsd_meals',
    method: 'post',
    data: data
  })
}
//修改菜单
export function updateMenu(data) {
  return request({
    url: 'wsd_meals',
    method: 'put',
    data: data
  })
}
//删除
export function removeMenu(data) {
  console.log(data)
  return request({
    url: 'wsd_meals/deleteSchoolRecipes',
    method: 'delete',
    params: data
  })
}
